home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / t_os / igo / src / mihandy.c < prev    next >
C/C++ Source or Header  |  1993-07-08  |  9KB  |  410 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    dialogId_handy ;
  9. extern int    dialogMessageId_handy ;
  10. extern int    radioId[9] ;
  11. extern int    radioFunc() ;
  12. extern int    radioMessageId[9] ;
  13. extern int    igo_handysetId[2] ;
  14. extern int    igo_handyset() ;
  15. extern int    cancelFunc() ;
  16. extern int    btnMessageId[2] ;
  17.  
  18. #define ALIGN    4
  19. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  20.  
  21. /*    MMI_init 用データ    */
  22.  
  23. /*    ヘッダ    */
  24.  
  25. MMIINIT    initDataMIHANDY = { "MmiInit",  24, 0 } ;
  26.  
  27. /* dialogId_handy */
  28.  
  29. static MMIPACKET d001 = {    &dialogId_handy,
  30.                             NULL,
  31.                             &MJ_DIALOGL40,
  32.                             OFFSET(DIALOGL40),
  33.                             MS_NONE
  34.                         } ;
  35. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SAVEL40,
  36.                              245,  82, 415, 371, 0, 7, 0,
  37.                             MS_SRECTL40 | MS_FRAMEL40,
  38.                             NULL,   0,   0
  39.                         } ;
  40.  
  41. /* dialogMessageId_handy */
  42.  
  43. static MMIPACKET d002 = {    &dialogMessageId_handy,
  44.                             &dialogId_handy,
  45.                             &MJ_MSGL40,
  46.                             OFFSET(MSGL40),
  47.                             MS_NONE
  48.                         } ;
  49. static MSGL40    d002d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  50.                              271,  98, 383, 125, 0,15, 8,
  51.                             MS_NONEL40,
  52.                             "置石設定",
  53.                                1,  12,  12,
  54.                             MS_NONEL40,
  55.                                5,   0
  56.                         } ;
  57.  
  58. /* radioId[0] */
  59.  
  60. static MMIPACKET d003 = {    &radioId[0],
  61.                             &dialogId_handy,
  62.                             &MJ_TICONL40,
  63.                             OFFSET(TICONL40),
  64.                             MS_NONE
  65.                         } ;
  66. static TICONL40    d003d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  67.                              279, 137, 297, 155, 0, 7, 8,
  68.                             MS_NONEL40,
  69.                             radioFunc,
  70.                             0x0000, 259, 260
  71.                         } ;
  72.  
  73. /* radioId[1] */
  74.  
  75. static MMIPACKET d004 = {    &radioId[1],
  76.                             &dialogId_handy,
  77.                             &MJ_TICONL40,
  78.                             OFFSET(TICONL40),
  79.                             MS_NONE
  80.                         } ;
  81. static TICONL40    d004d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  82.                              279, 157, 297, 175, 0, 7, 8,
  83.                             MS_NONEL40,
  84.                             radioFunc,
  85.                             0x0000, 259, 260
  86.                         } ;
  87.  
  88. /* radioId[2] */
  89.  
  90. static MMIPACKET d005 = {    &radioId[2],
  91.                             &dialogId_handy,
  92.                             &MJ_TICONL40,
  93.                             OFFSET(TICONL40),
  94.                             MS_NONE
  95.                         } ;
  96. static TICONL40    d005d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  97.                              279, 177, 297, 194, 8, 7, 8,
  98.                             MS_NONEL40,
  99.                             radioFunc,
  100.                             0x0000, 259, 260
  101.                         } ;
  102.  
  103. /* radioId[3] */
  104.  
  105. static MMIPACKET d006 = {    &radioId[3],
  106.                             &dialogId_handy,
  107.                             &MJ_TICONL40,
  108.                             OFFSET(TICONL40),
  109.                             MS_NONE
  110.                         } ;
  111. static TICONL40    d006d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  112.                              279, 197, 297, 214, 8, 7, 8,
  113.                             MS_NONEL40,
  114.                             radioFunc,
  115.                             0x0000, 259, 260
  116.                         } ;
  117.  
  118. /* radioId[4] */
  119.  
  120. static MMIPACKET d007 = {    &radioId[4],
  121.                             &dialogId_handy,
  122.                             &MJ_TICONL40,
  123.                             OFFSET(TICONL40),
  124.                             MS_NONE
  125.                         } ;
  126. static TICONL40    d007d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  127.                              279, 218, 297, 235, 8, 7, 8,
  128.                             MS_NONEL40,
  129.                             radioFunc,
  130.                             0x0000, 259, 260
  131.                         } ;
  132.  
  133. /* radioId[5] */
  134.  
  135. static MMIPACKET d008 = {    &radioId[5],
  136.                             &dialogId_handy,
  137.                             &MJ_TICONL40,
  138.                             OFFSET(TICONL40),
  139.                             MS_NONE
  140.                         } ;
  141. static TICONL40    d008d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  142.                              279, 240, 297, 257, 8, 7, 8,
  143.                             MS_NONEL40,
  144.                             radioFunc,
  145.                             0x0000, 259, 260
  146.                         } ;
  147.  
  148. /* radioId[6] */
  149.  
  150. static MMIPACKET d009 = {    &radioId[6],
  151.                             &dialogId_handy,
  152.                             &MJ_TICONL40,
  153.                             OFFSET(TICONL40),
  154.                             MS_NONE
  155.                         } ;
  156. static TICONL40    d009d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  157.                              279, 261, 297, 278, 8, 7, 8,
  158.                             MS_NONEL40,
  159.                             radioFunc,
  160.                             0x0000, 259, 260
  161.                         } ;
  162.  
  163. /* radioId[7] */
  164.  
  165. static MMIPACKET d010 = {    &radioId[7],
  166.                             &dialogId_handy,
  167.                             &MJ_TICONL40,
  168.                             OFFSET(TICONL40),
  169.                             MS_NONE
  170.                         } ;
  171. static TICONL40    d010d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  172.                              279, 282, 297, 299, 8, 7, 8,
  173.                             MS_NONEL40,
  174.                             radioFunc,
  175.                             0x0000, 259, 260
  176.                         } ;
  177.  
  178. /* radioId[8] */
  179.  
  180. static MMIPACKET d011 = {    &radioId[8],
  181.                             &dialogId_handy,
  182.                             &MJ_TICONL40,
  183.                             OFFSET(TICONL40),
  184.                             MS_NONE
  185.                         } ;
  186. static TICONL40    d011d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_LEFTL40,
  187.                              279, 305, 297, 322, 8, 7, 8,
  188.                             MS_NONEL40,
  189.                             radioFunc,
  190.                             0x0000, 259, 260
  191.                         } ;
  192.  
  193. /* radioMessageId[0] */
  194.  
  195. static MMIPACKET d012 = {    &radioMessageId[0],
  196.                             &dialogId_handy,
  197.                             &MJ_MSGL40,
  198.                             OFFSET(MSGL40),
  199.                             MS_NONE
  200.                         } ;
  201. static MSGL40    d012d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  202.                              310, 136, 360, 155, 8,15, 8,
  203.                             MS_NONEL40,
  204.                             "二子",
  205.                                1,  12,  12,
  206.                             MS_NONEL40,
  207.                                5,   0
  208.                         } ;
  209.  
  210. /* radioMessageId[1] */
  211.  
  212. static MMIPACKET d013 = {    &radioMessageId[1],
  213.                             &dialogId_handy,
  214.                             &MJ_MSGL40,
  215.                             OFFSET(MSGL40),
  216.                             MS_NONE
  217.                         } ;
  218. static MSGL40    d013d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  219.                              310, 157, 360, 176, 8,15, 8,
  220.                             MS_NONEL40,
  221.                             "三子",
  222.                                1,  12,  12,
  223.                             MS_NONEL40,
  224.                                5,   0
  225.                         } ;
  226.  
  227. /* radioMessageId[2] */
  228.  
  229. static MMIPACKET d014 = {    &radioMessageId[2],
  230.                             &dialogId_handy,
  231.                             &MJ_MSGL40,
  232.                             OFFSET(MSGL40),
  233.                             MS_NONE
  234.                         } ;
  235. static MSGL40    d014d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  236.                              310, 177, 360, 196, 8,15, 8,
  237.                             MS_NONEL40,
  238.                             "四子",
  239.                                1,  12,  12,
  240.                             MS_NONEL40,
  241.                                5,   0
  242.                         } ;
  243.  
  244. /* radioMessageId[3] */
  245.  
  246. static MMIPACKET d015 = {    &radioMessageId[3],
  247.                             &dialogId_handy,
  248.                             &MJ_MSGL40,
  249.                             OFFSET(MSGL40),
  250.                             MS_NONE
  251.                         } ;
  252. static MSGL40    d015d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  253.                              310, 196, 360, 216, 8,15, 8,
  254.                             MS_NONEL40,
  255.                             "五子",
  256.                                1,  12,  12,
  257.                             MS_NONEL40,
  258.                                5,   0
  259.                         } ;
  260.  
  261. /* radioMessageId[4] */
  262.  
  263. static MMIPACKET d016 = {    &radioMessageId[4],
  264.                             &dialogId_handy,
  265.                             &MJ_MSGL40,
  266.                             OFFSET(MSGL40),
  267.                             MS_NONE
  268.                         } ;
  269. static MSGL40    d016d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  270.                              310, 220, 360, 239, 8,15, 8,
  271.                             MS_NONEL40,
  272.                             "六子",
  273.                                1,  12,  12,
  274.                             MS_NONEL40,
  275.                                5,   0
  276.                         } ;
  277.  
  278. /* radioMessageId[5] */
  279.  
  280. static MMIPACKET d017 = {    &radioMessageId[5],
  281.                             &dialogId_handy,
  282.                             &MJ_MSGL40,
  283.                             OFFSET(MSGL40),
  284.                             MS_NONE
  285.                         } ;
  286. static MSGL40    d017d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  287.                              310, 240, 360, 259, 8,15, 8,
  288.                             MS_NONEL40,
  289.                             "七子",
  290.                                1,  12,  12,
  291.                             MS_NONEL40,
  292.                                5,   0
  293.                         } ;
  294.  
  295. /* radioMessageId[6] */
  296.  
  297. static MMIPACKET d018 = {    &radioMessageId[6],
  298.                             &dialogId_handy,
  299.                             &MJ_MSGL40,
  300.                             OFFSET(MSGL40),
  301.                             MS_NONE
  302.                         } ;
  303. static MSGL40    d018d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  304.                              310, 262, 359, 280, 8,15, 8,
  305.                             MS_NONEL40,
  306.                             "八子",
  307.                                1,  12,  12,
  308.                             MS_NONEL40,
  309.                                5,   0
  310.                         } ;
  311.  
  312. /* radioMessageId[7] */
  313.  
  314. static MMIPACKET d019 = {    &radioMessageId[7],
  315.                             &dialogId_handy,
  316.                             &MJ_MSGL40,
  317.                             OFFSET(MSGL40),
  318.                             MS_NONE
  319.                         } ;
  320. static MSGL40    d019d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  321.                              310, 283, 359, 301, 8,15, 8,
  322.                             MS_NONEL40,
  323.                             "九子",
  324.                                1,  12,  12,
  325.                             MS_NONEL40,
  326.                                5,   0
  327.                         } ;
  328.  
  329. /* radioMessageId[8] */
  330.  
  331. static MMIPACKET d020 = {    &radioMessageId[8],
  332.                             &dialogId_handy,
  333.                             &MJ_MSGL40,
  334.                             OFFSET(MSGL40),
  335.                             MS_NONE
  336.                         } ;
  337. static MSGL40    d020d =     {    MS_LEFTL40 | MS_DSPONLYL40,
  338.                              310, 306, 362, 323, 8,15, 8,
  339.                             MS_NONEL40,
  340.                             "向三子",
  341.                                1,  12,  12,
  342.                             MS_NONEL40,
  343.                                5,   0
  344.                         } ;
  345.  
  346. /* igo_handysetId[0] */
  347.  
  348. static MMIPACKET d021 = {    &igo_handysetId[0],
  349.                             &dialogId_handy,
  350.                             &MJ_DBUTTONL40,
  351.                             OFFSET(DBUTTONL40),
  352.                             MS_NONE
  353.                         } ;
  354. static DBUTTONL40    d021d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  355.                              259, 337, 323, 363, 4, 7, 8,
  356.                             MS_PANELL40 | MS_FRAMEL40 | MS_DEFAULTL40,
  357.                             igo_handyset,
  358.                             0x0000
  359.                         } ;
  360.  
  361. /* igo_handysetId[1] */
  362.  
  363. static MMIPACKET d022 = {    &igo_handysetId[1],
  364.                             &dialogId_handy,
  365.                             &MJ_DBUTTONL40,
  366.                             OFFSET(DBUTTONL40),
  367.                             MS_NONE
  368.                         } ;
  369. static DBUTTONL40    d022d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  370.                              338, 337, 402, 363,10, 7, 8,
  371.                             MS_PANELL40 | MS_FRAMEL40 | MS_DEFAULTL40,
  372.                             cancelFunc,
  373.                             0x0000
  374.                         } ;
  375.  
  376. /* btnMessageId[0] */
  377.  
  378. static MMIPACKET d023 = {    &btnMessageId[0],
  379.                             &dialogId_handy,
  380.                             &MJ_MSGL40,
  381.                             OFFSET(MSGL40),
  382.                             MS_NONE
  383.                         } ;
  384. static MSGL40    d023d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  385.                              263, 339, 322, 361, 8,15, 8,
  386.                             MS_NONEL40,
  387.                             "設定",
  388.                                1,  12,  12,
  389.                             MS_NONEL40,
  390.                                5,   0
  391.                         } ;
  392.  
  393. /* btnMessageId[1] */
  394.  
  395. static MMIPACKET d024 = {    &btnMessageId[1],
  396.                             &dialogId_handy,
  397.                             &MJ_MSGL40,
  398.                             OFFSET(MSGL40),
  399.                             MS_NONE
  400.                         } ;
  401. static MSGL40    d024d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  402.                              340, 339, 399, 361, 8,15, 8,
  403.                             MS_NONEL40,
  404.                             "取消",
  405.                                1,  12,  12,
  406.                             MS_NONEL40,
  407.                                5,   0
  408.                         } ;
  409.  
  410.